import request from '@/utils/request'

// 查询短信配置列表
export function listBasicSmsConfig(query) {
  return request({
    url: '/system/basicSmsConfig/list',
    method: 'get',
    params: query
  })
}

// 查询短信配置详细
export function getBasicSmsConfig(smsConfigId) {
  return request({
    url: '/system/basicSmsConfig/' + smsConfigId,
    method: 'get'
  })
}

// 新增短信配置
export function addBasicSmsConfig(data) {
  return request({
    url: '/system/basicSmsConfig',
    method: 'post',
    data: data
  })
}

// 修改短信配置
export function updateBasicSmsConfig(data) {
  return request({
    url: '/system/basicSmsConfig',
    method: 'put',
    data: data
  })
}

// 删除短信配置
export function delBasicSmsConfig(smsConfigId) {
  return request({
    url: '/system/basicSmsConfig/' + smsConfigId,
    method: 'delete'
  })
}
